<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AvansRS.Domain.Event>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>EventDateCreate</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>
    <%=Html.Hidden("eventID", Model.ID) %>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="ForStudents">ForStudents:</label>
                <%= Html.CheckBox("ForStudents") %>
                <%= Html.ValidationMessage("ForStudents", "*") %>
            </p>
            <p>
                <label for="AllowChanges">AllowChanges:</label>
                <%= Html.CheckBox("AllowChanges")%>
                <%= Html.ValidationMessage("AllowChanges", "*") %>
            </p>
            <p>
                <label for="Date">Date:</label>
                <%= Html.TextBox("Date") %>
                <%= Html.ValidationMessage("Date", "*") %>
            </p>
            <p>
            <%= Html.DropDownList("roosterID", (IEnumerable<SelectListItem>)ViewData["roosterList"])%>
            </p>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>




